Skip to content

Simplify code#113

Merged
mlange-42 merged 3 commits into
git-bahn:masterfrom
peso:simplify-code
Sep 16, 2025
Merged

Simplify code#113
mlange-42 merged 3 commits into
git-bahn:masterfrom
peso:simplify-code

Conversation

@peso

@peso peso commented Sep 16, 2025

Copy link
Copy Markdown
Collaborator

Straighten out small part of code so they are easier to understand.

The method is to do things one step at a time, instead of large functions that does everything.

Comment thread src/graph.rs
Comment thread src/graph.rs
Comment thread src/graph.rs Outdated
Improve readability by switching to imperative code
from functional code.
Replace match with if to show primary flow.
Change content of group_offset to include offset 0 at index 0.

Convert code from functional to imperative.
@mlange-42 mlange-42 merged commit 529681b into git-bahn:master Sep 16, 2025
2 checks passed
@peso peso deleted the simplify-code branch September 18, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants